﻿@model IEnumerable<Domain.Entities.Order>

@{
    ViewBag.Title = "Заказы в обработке";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>@ViewBag.Title</h2>

<table>
    <tr>
        <th>
            Номер
        </th>

        <th>
            Дата
        </th>


        <th>
            Страна
        </th>

        <th>
            Город
        </th>
          <th>
            Сумма
        </th>

        <th>Управление

        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        
        <td>
            @Html.DisplayFor(modelItem => item.Id)
        </td>
     
        <td>
            @Html.DisplayFor(modelItem => item.OrderDate) 
        </td>
        
        <td>
            @Html.DisplayFor(modelItem => item.Country)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.City)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.Total)
        </td>

        <td> 
            @Html.ActionLink("Редактировать", "EditOrder", new { id=item.Id }, new { @class = "editLink" }) |
            @Html.ActionLink("Удалить", "DeleteOrder", new { id=item.Id }, new { @class = "deleteLink" })
        </td>
    </tr>
}

</table>
